package com.cn.lycss.service;

import com.cn.lycss.dao.NavDao;
import com.cn.lycss.model.NavModel;

public class NavService {

    public static NavModel[] getNavModel() {

        NavDao navDao=new NavDao();
        NavModel[] navModels=new NavModel[5];
        for (int i = 0; i < navModels.length; i++) {
            NavModel navModel =new NavModel();

            navModel.setHref(navDao.href[i]);
            navModel.setTitle(navDao.title[i]);
            navModels[i]=navModel;
        }
        return navModels;
    }
}
